package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_JHZT"
 *     
*/
public class DmJhzt implements Serializable {

    /** identifier field */
    private String jhztDm;

    /** nullable persistent field */
    private String jhztMc;

    /** full constructor */
    public DmJhzt(String jhztDm, String jhztMc) {
        this.jhztDm = jhztDm;
        this.jhztMc = jhztMc;
    }

    /** default constructor */
    public DmJhzt() {
    }

    /** minimal constructor */
    public DmJhzt(String jhztDm) {
        this.jhztDm = jhztDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="JHZT_DM"
     *         
     */
    public String getJhztDm() {
        return this.jhztDm;
    }

    public void setJhztDm(String jhztDm) {
        this.jhztDm = jhztDm;
    }

    /** 
     *            @hibernate.property
     *             column="JHZT_MC"
     *             length="30"
     *         
     */
    public String getJhztMc() {
        return this.jhztMc;
    }

    public void setJhztMc(String jhztMc) {
        this.jhztMc = jhztMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("jhztDm", getJhztDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmJhzt) ) return false;
        DmJhzt castOther = (DmJhzt) other;
        return new EqualsBuilder()
            .append(this.getJhztDm(), castOther.getJhztDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getJhztDm())
            .toHashCode();
    }

}
